#include <iostream>
#include <string>

using namespace std;

int main()
{
    string str;
    string str_temp;
    cin>>str>>str_temp;
    cout<<str.find(str_temp)<<endl;
    return 0;
}
